package com.smartthinking.CICPNL;

import java.util.ArrayList;
import java.util.Dictionary;

import com.smartthinking.CICPNL.home.activity.Utilities;

import android.os.Bundle;
import android.os.Environment;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.webkit.WebView;
import android.widget.RelativeLayout;

public class InfoGeneral extends Activity {

	public void voidFinish(View V) {
		finish();

	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.ui_activity_info_general);
		
		ArrayList<Dictionary<String, String>> Traedatos = Utilities.qry2(getApplicationContext(),
				"select eve_infogeneral from eventos where eve_idr ="+Utilities.EVE_IDR);
		
		WebView  webView = (WebView)findViewById(R.id.webView1);
		RelativeLayout relative = (RelativeLayout) findViewById(R.id.relative_xy);
		
	    webView.getSettings().setBuiltInZoomControls(true);
	    webView.getSettings().setJavaScriptEnabled(true);
	   

	    String url ="file://"+Environment.getExternalStorageDirectory()+"/Pediatria/"+Traedatos.get(0).get("eve_infogeneral");
	    String imgSrcHtml = "<html><img src='" + url + "' /></html>";
	    webView.loadDataWithBaseURL("", imgSrcHtml, "text/html","utf-8", "");
		
		
		
	}


}
